package com.hnu.store.mapper;

import com.hnu.store.entity.Inform;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface InformMapper {

  //根据双方id获取他们之间的聊天记录
  List<Inform> getMessageList(@Param("userName") String userName,
      @Param("otherName") String otherName);

  //获取该用户所有记录
  List<Inform> getSessionList(String userName);

  void insertMessage(@Param("sendName") String sendName,
                     @Param("receiveName") String receiveName,
                     @Param("content") String content);
}
